﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
    using System;
    using Newtonsoft.Json;
    using QQZiFramework;

/// <summary>
/// 动态页面
/// </summary>
[DBTable(TableName = "design_pages")]
public class DesignPage : IDBEntity
{
    [DBField(Usage = DBFieldUsage.PrimaryKey)]
    public Int64 id { get; set; }
    /// <summary>
    /// 名称
    /// </summary>
    /// <value></value>
    public String name { get; set; }
    /// <summary>
    /// 页面内容
    /// </summary>
    /// <value></value>
    public String conf { get; set; }
    /// <summary>
    /// 应用Id
    /// </summary>
    public int? app_id { get; set; }

    /// <summary>
    /// 父页面Id
    /// </summary>
    public Int64? parent_id { get; set; }

    /// <summary>
    /// 页面编码
    /// </summary>
    public String key_code { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [JsonConverter(typeof(UnixTimeConverter))]
    public DateTime update_time { get; set; }

    /// <summary>
    /// 更新者
    /// </summary>
    public string updater { get; set; }


    public Int64? tenant_id { get; set; }

    /// <summary>
    /// 标记删除
    /// </summary>
    [DBField(Usage = DBFieldUsage.MarkDelete, MarkDeleteValue = new int[] { 0, 1 })]
    public bool? deleted { get; set; }

}